/*
-------------------------------------------------

	File.h

	Dmitriy Kuzmenko (Dgut)

-------------------------------------------------
*/

#ifndef __AUTUMN_FILE_H__
#define __AUTUMN_FILE_H__

#include "Singleton.h"
#include <stdio.h>

namespace Autumn
{

#define gFile File::GetInstance()

class File : public Singleton< File >
{
	char						resDirectory[ 1024 ];
	char						docDirectory[ 1024 ];

								File( void );
								~File( void );
public:
	const bool					Init( void );
	void						Shutdown( void );
	
	FILE * const				Open( const char * name, const char * mode );
		
	friend class				Singleton< File >;
};

}	// namespace Autumn

#endif	// !!! __AUTUMN_FILE_H__ !!!